﻿using System;

namespace GDExtensions
{
    /// <summary>
    /// Helper class to enable/disable the event receivers from firing.
    /// </summary>
    public class EventReceiverFiring :
        Microsoft.SharePoint.SPEventReceiverBase
    {
        /// <summary>
        /// Method to enable the event receivers from firing.
        /// </summary>
        public void Enable() { base.EventFiringEnabled = true; }

        /// <summary>
        /// Method to disable the event receivers from firing.
        /// </summary>
        public void Disable() { base.EventFiringEnabled = false; }
    }
}
